function count(arr,c){
	let sum = 0;

	for(let i=0;i<arr.length;i++){
		if(arr[i] === c){
			sum++;
		}
	}

	return sum;
}